<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<c:set var="ctx" value="${pageContext.request.contextPath}" />
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html >
    <head>
        <meta charset="utf-8">
        <title>国开证券高管驾驶舱</title>
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <meta name="description" content="">
        <meta name="author" content="">
        <!-- CSS -->
        <link rel="stylesheet" href="resources/assets/css/reset.css">
        <link rel="stylesheet" href="resources/assets/css/supersized.css">
        <link rel="stylesheet" href="resources/assets/css/style.css">

        <!-- HTML5 shim, for IE6-8 support of HTML5 elements -->
        <!--[if lt IE 9]>
            <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
        <![endif]-->

<script type="text/javascript">    
function doSubmit() {    
    document.loginform.submit();
    var msg=document.getElementById("msg").value;
    /* if(msg!=null){
    	confirm(msg+",请重新输入！！！");
    } */
}    
  document.onkeydown=function(event){
            var e = event || window.event || arguments.callee.caller.arguments[0];
            if(e && e.keyCode==27){ // 按 Esc 
                //要做的事情
              }
            if(e && e.keyCode==113){ // 按 F2 
                 //要做的事情
               }            
             if(e && e.keyCode==13){ // enter 键
                 doSubmit();
            }
        }; 
</script>    
    </head>

    <body>
        <div class="page-container">
            <h1><img src="resources/assets/img/gkzq.png" style="width:20%;height:10%"></h1>
            <form action="${ctx }/login.html" method="post" id="loginform" name="loginform">
                <input type="text" id='accountName' name="accountName" class="username" placeholder="请输入用户名" value="admin">
                <input type="password" id='password'  name="password" class="password" placeholder="请输入密码" value="admin">
               	<button type="button" value="登录" onclick="doSubmit()" > 登录 </button>
                <div class="error"  style="display:none">
	                <input type="text"  id="msg" value="<%=request.getAttribute("error")%>"/> 
                </div>
            </form>
          
        </div>
		
        <div align="center"  style = "width=500px;position:absolute;bottom:10%; left: 50%;margin-left:-250px; " >温馨提示！建议使用Chrome、firefox、IE11等主流浏览器，设备分辨率1366*768</div>
		

        <!-- Javascript -->
        <script src="resources/assets/js/jquery-1.8.2.min.js"></script>
        <script src="resources/assets/js/supersized.3.2.7.min.js"></script>
        <script src="resources/assets/js/supersized-init.js"></script>
        <script src="resources/assets/js/scripts.js"></script>

    </body>

</html>



